package com.gwt.client.place;

import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceTokenizer;
import com.google.gwt.place.shared.Prefix;

public class SlidePlace extends Place{
	private String name;

	public SlidePlace(String name){
		this.name = name;
	}
	
	public String getName(){
		return name;
	}
	
	public void setName(String name){
		this.name = name;
	}

	@Prefix("slide")
	public static class Tokenizer implements PlaceTokenizer<SlidePlace>{

		@Override
		public SlidePlace getPlace(String token) {
			return new SlidePlace(token);
		}

		@Override
		public String getToken(SlidePlace place) {
			return place.getName();
		}

	}
}
